<ion-view view-title="登录" name="login-view" hide-nav-bar="true">
  <ion-content overflow-scroll="true" class="no_scorll">
    <div class="login_container">
      <div class="roof"> 
        <img src="img/logo.png">
      </div>
      <form name="loginform" novalidate>
        <div class="mid">
          <div class="list list-inset list-inset-custom" >
            <label class="item item-input" style="background:transparent">
              <i class="icon ion-android-person placeholder-icon"></i>
              <input type="text" placeholder="电话号码" name="username" id="username" ng-model="loginData.staffId" required>
            </label>
          </div>
          <div class="list list-inset list-inset-custom" style="display:none">
            <label class="item item-input">
              <i class="icon ion-android-lock placeholder-icon"></i>
              <input type="password" placeholder="密码" name="userpwd" id="userpwd" ng-model="loginData.password"  >
            </label>
          </div>
          <div class="list list-inset  ">
            <div class="item item-input item-input-cust">
              <label>
                <input type="text" placeholder="请输入验证码" name="msgcode" id="msgcode" ng-model="loginData.randomNum"  ng-disabled="enWrite" required>
              </label>
              <a class="button button-small button-positive" ng-disabled='!loginform.username.$valid||hqyzm!="获取验证码"' ng-click="doGenerateSmsVerifyCode()">
                {{hqyzm}}<!--ng-disabled='!loginform.username.$valid||hqyzm!="获取验证码"'-->
              </a>
            </div>
          </div>

          <div class="list  "   >
            <div class="row margin-itop-cust" >
              <div class="col col-33 login-algin-left-cust">
                <input  id="jzmm"  type="checkbox"  ng-true-value="'yes'" ng-false-value="'no'" ng-model="loginData.chkrempwd" ng-click="doimg()" />
                记住用户名
              </div>
              <div class="col col-75 login-algin-right-cust" style="color:#999">验证码有效期为5分钟</div>
            </div>
          </div>

          <div class="row row-20">
            <div class="col col-75padding">
              <a class="button button-block button-login-cust" ng-click="doLogin()" style="color:white" >登录</a>
            </div>
          </div>
          <div class="list boof"  >
                <img src="img/onluyewm.jpg">
          </div>

        </div>
      </form>
    </div>
  </ion-content>
</ion-view>
